<?php

namespace app\models;

use Yii;
use yii\base\Model;

/**
 * ContactForm is the model behind the contact form.
 */
class MakeklineForm extends Model
{
    public $klinefile;

    /**
     * @return array the validation rules.
     */
    public function rules()
    {
        return [
            [['klinefile'], 'required'],
            [['klinefile'],'file'],
        ];
    }

    /**
     * @return array customized attribute labels
     */
     public function attributeLabels()
     {
         return [
           'klinefile' => 'K线数据文件',
         ];
     }

}
